﻿using System;

namespace SchemaGen.Attributes
{
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Class, Inherited = true, AllowMultiple = true)]
    public sealed class XmlAttributeAttribute : XmlEntityBaseAttribute
    {
        public bool IsRequired { get; set; }

        public XmlAttributeAttribute(string name) : base(name) { }
        public XmlAttributeAttribute(params string[] nameSegments) : base(nameSegments) { }
    }
}
